package com.google.code.sharecontent.dao;

import java.sql.SQLException;
import java.util.ArrayList;

import com.google.code.sharecontent.action.ResultContainer;
import com.google.code.sharecontent.model.Model;
import com.google.code.sharecontent.model.Paging;


public interface BaseDao<T extends Model> {

	ArrayList<T> list() throws SQLException ;
	ArrayList<T> list(String order) throws SQLException ;
	ArrayList<T> list(String where,String order, Object... values) throws SQLException;
	ResultContainer<T> list(Paging paging,String where,String order, Object... values) throws SQLException;
	T get(Integer id) throws SQLException ;
	T save(T payment) throws SQLException;
	boolean remove(T payment);
	boolean remove(Integer id);

}
